<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec"	uri="http://www.springframework.org/security/tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Wellcome,<sec:authentication property="principal.username"/>!</title>
<link rel="stylesheet" type="text/css" href="./resources/style.css">
</head>
<body>
	<hr>
	<table width="100%">
		<tr>
			<td>
				<h2>Hello, <sec:authentication property="principal.username"/>!</h2>
			</td>
			<td align="right">
				 <a href="./logout">logout</a>
			</td>	
		</tr>
	</table>
	<a href="./web/feeds">Show feeds</a>
	<br>
	<a href="./web/addFeedForm">Add feed</a>
	<br>
	<a href="./web/updateFeedForm">Update feed</a>
	<br>
	<a href="./web/deleteFeedForm">Delete feed</a>
	<br>
	
	<sec:authorize access="hasRole('ROLE_ADMIN')">
		<br>
		<hr width="100" align="left">
		<br>
		<a href="./web/admin?username=${principal.username}&action=none">Admin page</a>
		<br>
	</sec:authorize>
		
</body>
</html>